<?php
header("content-type:text/html;charset=utf-8");

date_default_timezone_set("PRC");


$commentnewsid=$_POST['newsid'];

$commentnewscontent="";


$sql="SELECT * FROM comment where commentnewsid='$commentnewsid' ORDER BY commentpraisetimes DESC,commenttime DESC LIMIT 0,5";
require_once("db_comment_content.php"); 
$comment=new db_comment;
$commentnewscontent=$comment->commentcontent($sql);

if($commentnewscontent==""){
	$commentnewscontent="<div class='nomore_comment_content'>没有更多评论~</div>";
	$pinglun_hot_more="<a href='javascript:void(0);'>加载更多</a>";
}
else{
	$pinglun_hot_more="<a href='javascript:void(0);' onclick='js_pinglun_hot_more(".$commentnewsid.")'>加载更多</a>";
}

//echo $commentnewscontent;
$json = array('commentnewscontent'=>  $commentnewscontent,'pinglun_hot_more' =>  $pinglun_hot_more);
echo json_encode($json);

?>